package com.kaiyiweitong.tongxing.util;

import android.content.Context;
import android.util.Log;

/**
 * Created by Administrator on 2017/12/22 0022.
 */

public class LogUtils {
    private static boolean openLog = true;

    public static void infoLog(Context context, String content) {
        if (openLog) {
            Log.i(context.getClass().getName(), content);
        }
    }

    public static void infoLog(String tag, String content) {
        if (openLog) {
            Log.i(tag, content);
        }
    }



    public static void errorLog(Context context, String content) {
        if (openLog) {
            Log.e(context.getClass().getName(), content);
        }
    }

    public static void errorLog(String tag, String content) {
        if (openLog) {
            Log.e(tag, content);
        }
    }
}
